#include<iostream>
using namespace std;
int main ()
{
    int n;

    cout<<"Ingrese su numero"<<endl;
    cin>>n;
    while (n>5)
    {
        if(n%5==0)
        {
            n=n-5;
            cout<<n<<endl;
        }else
        {
            while(n%5!=0)
            {
                n=n-1;
            }
            cout<<n<<endl;
            n=n-5;
            cout<<n<<endl;
        }

    }
    return 1;
}
